package com.supersoul.myself.service;

import com.supersoul.myself.entity.bo.Prize;
import com.supersoul.myself.entity.bo.PrizeBean;
import com.supersoul.myself.ex.ServiceException;
import java.util.List;

public interface LotteryService {


    Prize goLottery() throws ServiceException;


    /**
     * 生成奖池
     */
    List<PrizeBean> generatePrizePool(List<Prize> prizeList) throws ServiceException;

    /**
     * 抽奖
     */
    Prize getPrize(List<PrizeBean> prizeBeanList) throws  ServiceException;


    /**
     *  发奖
     */
    void sendPrize(Prize prize) throws ServiceException;

}
